<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <link rel="stylesheet" href="/css/index.css">
  <link href="https://cdn.bootcdn.net/ajax/libs/cropperjs/1.6.0/cropper.min.css" rel="stylesheet">
</head>

<body>

  <label>
    <div class="avatar-wrapper">
      <img id="avatar" src="/assets/img1.jpeg">
    </div>
    <input type="file" accept="image/*">
  </label>

  <div class="mask hidden">
    <div class="content">
      <img id="clip-img">
    </div>
    <div class="btn-wrapper">
      <button id="cancel-btn">取消</button>
      <button id="clip-btn">确定</button>
    </div>
  </div>
  <script src="https://cdn.bootcdn.net/ajax/libs/cropperjs/1.6.0/cropper.min.js"></script>
  <script src="/js/index.js"></script>
</body>

</html>